package com.ruoyi.fpa.domain;

import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 外键对象 gen_reference
 * 
 * @author koradji@116.com
 * @date 2023-09-17
 */
public class GenReference extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long referenceId;

    /** 主表编号 */
    @Excel(name = "主表编号")
    private Long tableId;

    /** 子编号 */
    @Excel(name = "子编号")
    private Long subTableId;

    /** 是否生成（1是） */
    @Excel(name = "是否生成", readConverterExp = "1=是")
    private String isGenerated;

    /** 外键关联信息 */
    private List<GenReferenceColumn> genReferenceColumnList;

    public void setReferenceId(Long referenceId) 
    {
        this.referenceId = referenceId;
    }

    public Long getReferenceId() 
    {
        return referenceId;
    }
    public void setTableId(Long tableId) 
    {
        this.tableId = tableId;
    }

    public Long getTableId() 
    {
        return tableId;
    }
    public void setSubTableId(Long subTableId) 
    {
        this.subTableId = subTableId;
    }

    public Long getSubTableId() 
    {
        return subTableId;
    }
    public void setIsGenerated(String isGenerated) 
    {
        this.isGenerated = isGenerated;
    }

    public String getIsGenerated() 
    {
        return isGenerated;
    }

    public List<GenReferenceColumn> getGenReferenceColumnList()
    {
        return genReferenceColumnList;
    }

    public void setGenReferenceColumnList(List<GenReferenceColumn> genReferenceColumnList)
    {
        this.genReferenceColumnList = genReferenceColumnList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("referenceId", getReferenceId())
            .append("tableId", getTableId())
            .append("subTableId", getSubTableId())
            .append("isGenerated", getIsGenerated())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("genReferenceColumnList", getGenReferenceColumnList())
            .toString();
    }
}
